class QuestionsController < ApplicationController
  def index
    @questions = Question.all.page(params[:page]||1).per_page(params[:per_page]||10).order("id desc")
  end
end
